import 'package:flutter/services.dart';
import 'package:vibration/vibration.dart';

class LaraPressNative {
  static Future<void> lightImpact() async {
    try {
      bool? hasVibrator = await Vibration.hasVibrator();
      if (hasVibrator == true) {
        await Vibration.vibrate(duration: 100);
      } else {
        HapticFeedback.lightImpact();
      }
    } catch (e) {
      rethrow;
    }
  }
}
